<?php

namespace app\api\library;

use think\Config;

class Domain {

    public static function http($url)
    {
        if (!strstr($url, 'http') && !strstr($url, 'data:image') && (strstr($url, 'uploads') || strstr($url, 'data') || strstr($url, 'assets'))){
            $url = Config::get('site.osscdn').$url;
        }
        return $url;
    }
}